package com.qaml.mes.device.dao.mapper;

import com.qaml.mes.device.dao.CheckUpkeepRecordDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 检保记录表 Mapper 接口
 * </p>
 *
 * @author leikai
 * @since 2024-02-27
 */
@Mapper
public interface CheckUpkeepRecordMapper extends BaseMapper<CheckUpkeepRecordDO> {

    void updateCheckUpkeepRecordArchive(@Param("userId") String userId, @Param("userName") String userName, @Param("type") String type,
                                        @Param("startDateByMonth") Date startDateByMonth, @Param("endDateByMonth") Date endDateByMonth);

    /**
     * 给检保任务打上假期提示
     * @param ids
     */
    void updateCheckUpkeepUserByIds(List<String> ids);
}
